/**
 * Copyright (c) 2009  Collaborative Development Group, C.S. Dept., University of Bari
 *
 * All rights reserved. This program and the accompanying materials are made available under
 * the terms of the Eclipse Public License v1.0  which accompanies this distribution, and is 
 * available at http://www.eclipse.org/legal/epl-v10.html
 */
package it.uniba.di.cdg.jtalk.core.internal;

import it.uniba.di.cdg.jtalk.core.IPreferenceManager;

/**
 * Application preferences. 
 */
public class PreferenceManager implements IPreferenceManager {

	private Boolean automaticLogin = Boolean.FALSE;
	private Boolean rememberPassword = Boolean.FALSE;

	/* (non-Javadoc)
	 * @see it.uniba.di.cdg.jtalk.core.IPreferenceManager#isAutomaticLogin()
	 */
	@Override
	public Boolean isAutomaticLogin() {
		return automaticLogin;
	}

	/* (non-Javadoc)
	 * @see it.uniba.di.cdg.jtalk.core.IPreferenceManager#isRememberPassword()
	 */
	@Override
	public Boolean isRememberPassword() {
		return rememberPassword;
	}

	/* (non-Javadoc)
	 * @see it.uniba.di.cdg.jtalk.core.IPreferenceManager#setAutomaticLogin(java.lang.Boolean)
	 */
	@Override
	public void setAutomaticLogin( Boolean automaticLogin ) {
		this.automaticLogin = automaticLogin;
	}

	/* (non-Javadoc)
	 * @see it.uniba.di.cdg.jtalk.core.IPreferenceManager#setRememberPassword(java.lang.Boolean)
	 */
	@Override
	public void setRememberPassword( Boolean rememberPassword ) {
		this.rememberPassword = rememberPassword;
	}
}
